/**
 * Copyright &copy; 2020 <a href="https://github.com/somowhere/exam-system">exam-system</a> All rights reserved.
 */
package com.shanhesoft.java.modules.exam.domain;

import lombok.*;
import com.baomidou.mybatisplus.annotation.*;
import com.shanhesoft.java.common.persistence.domain.IdEntity;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import com.shanhesoft.java.common.core.annotation.DictType;


import javax.validation.constraints.*;

/**
 * 实验环境管理Entity 实验环境管理
 * @author superadmin
 * @version 2021-12-27 14:52:49
 */
@TableName(value = "t_virtual_training_environment")
@Data @ToString @NoArgsConstructor @AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class TVirtualTrainingEnvironment extends IdEntity<TVirtualTrainingEnvironment> {

	private static final long serialVersionUID = 1L;
	/** F_NAME name  :  实验环境名称 */
	public static final String F_NAME = "name";
	/** F_IMAGE image  :  镜像 */
	public static final String F_IMAGE = "image";
	/** F_ENVTYPE env_type  :  环境类型 */
	public static final String F_ENVTYPE = "envType";
	/** F_DATADIR data_dir  :  数据路径 */
	public static final String F_DATADIR = "dataDir";
	/** F_PORT port  :  容器访问端口号 */
	public static final String F_PORT = "port";
	/** F_TOKEN token  :  容器认证token */
	public static final String F_TOKEN = "token";


	/** name 实验环境名称 */@NotBlank @Size(max=20)

	private String name;
	/** image 镜像 */@NotBlank @Size(max=100)

	private String image;
	/** envType 环境类型 */@NotNull
	@TableField("env_type")
	private String envType;
	/** dataDir 数据路径 */@NotBlank @Size(max=100)
	@TableField("data_dir")
	private String dataDir;
	/** port 容器访问端口号 */@NotNull

	private Integer port;
	/** token 容器认证token */@NotBlank @Size(max=200)

	private String token;


	@Override
    public boolean equals(Object o) {
        return super.equals(o);
    }
    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
